﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data;
using Data.Attributes;
using System.Data;

namespace BusinessLayer.Tables
{
    [Tables("TBL_0_DONEM")]
    public class Db_Donem : MasterTable
    {
        #region
        int dnm_id;
        DateTime create_date;
        int create_user;
        DateTime update_date;
        int update_user;
        bool locked;
        bool hidden;
        string dnm_kod;
        int dnm_firma_id;
        DateTime dnm_kull_date;
        DateTime dnm_bit_date;
        int dnm_aktif_yil;



        #endregion

        #region Properties
        [Fields("dnm_id", true, true, true, false, true, false, false, 4, SqlDbType.Int, true, false, -1, -1, -1, -1, -1)]
        public int Donem_ID
        {
            get { return dnm_id; }
            set { dnm_id = value; }
        }
        [Fields("create_date", true, true, true, false, false, true, false, 8, SqlDbType.DateTime, false, false, -1, -1, -1, -1, -1)]
        public DateTime Create_Date
        {
            get { return create_date; }
            set { create_date = value; }
        }
        [Fields("create_user", true, true, true, false, true, true, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int Create_User
        {
            get { return create_user; }
            set { create_user = value; }
        }
        [Fields("update_date", true, true, true, false, true, true, false, 8, SqlDbType.DateTime, false, false, -1, -1, -1, -1, -1)]
        public DateTime Update_Date
        {
            get { return update_date; }
            set { update_date = value; }
        }
        [Fields("update_user", true, true, true, false, true, true, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int Update_User
        {
            get { return update_user; }
            set { update_user = value; }
        }
        [Fields("locked", true, true, true, false, true, true, false, 2, SqlDbType.Bit, false, false, -1, -1, -1, -1, -1)]
        public bool Locked
        {
            get { return locked; }
            set { locked = value; }
        }
        [Fields("hidden", true, true, true, false, true, true, false, 2, SqlDbType.Bit, false, false, -1, -1, -1, -1, -1)]
        public bool Hidden
        {
            get { return hidden; }
            set { hidden = value; }
        }
        [Fields("dnm_kod", true, true, true, true, true, false, true, 3, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string Dnm_Kod
        {
            get { return dnm_kod; }
            set { dnm_kod = value; }
        }
        [Fields("dnm_firma_id", true, true, true, true, true, false, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int Dnm_Firma_ID
        {
            get { return dnm_firma_id; }
            set { dnm_firma_id = value; }
        }
        [Fields("dnm_kull_date", true, true, true, false, true, false, false, 8, SqlDbType.DateTime, false, false, -1, -1, -1, -1, -1)]
        public DateTime Dnm_Kull_Date
        {
            get { return dnm_kull_date; }
            set { dnm_kull_date = value; }
        }

        [Fields("dnm_bit_date", true, true, true, false, true, false, false, 8, SqlDbType.DateTime, false, false, -1, -1, -1, -1, -1)]
        public DateTime Dnm_Bit_Date
        {
            get { return dnm_bit_date; }
            set { dnm_bit_date = value; }
        }

        [Fields("dnm_aktif_yil", true, true, true, false, true, false, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int Dnm_Aktif_Yil
        {
            get { return dnm_aktif_yil; }
            set { dnm_aktif_yil = value; }
        }
        #endregion
    }
}
